#include "right_side_win_mgr.h"
#include <QDebug>

RightSideWinMgr::RightSideWinMgr(QWidget *ptr)
    :m_rightSideWinPtr(ptr)
{
    if(m_rightSideWinPtr)
    {
        m_layoutPtr = new QVBoxLayout(m_rightSideWinPtr);
        m_layoutPtr->setContentsMargins(0,0,2,2);
        m_layoutPtr->setSpacing(4);
        m_rightSideWinPtr->setLayout(m_layoutPtr);
        qDebug() << "m_rightSideWinPtr init success";
    }

}

RightSideWinMgr::~RightSideWinMgr()
{

}

void RightSideWinMgr::addSubWin(QWidget *subPtr)
{
    if(m_rightSideWinPtr)
    {
        m_layoutPtr->addWidget(subPtr);
        qDebug() << "addSubWin success";
    }
}
